@import './form';

[data-mode="mobile"] {
  #login-box-parent {
    #login-box {
      position: relative;
      width: 100%;
      height: 100%;
      top: inherit;
      left: inherit;
      transform: translateX(0) translateY(0);
      flex-direction: column;
      justify-content: flex-start;
      border-radius: 0;
      box-shadow: none;

      .login-form {
        width: 100%;
        min-height: auto;
        padding: 30px;
      }
    }
  }

  .copyright {
    position: relative;
  }
}

:deep(input[type="password"]::-ms-reveal) {
  display: none;
}

:deep(.i18n-selector) {
  position: absolute;
  z-index: 1;
  top: 20px;
  right: 20px;
  cursor: pointer;
  font-size: 18px;
  color: var(--el-text-color-primary);
}

#login-box-parent {
  position: absolute;
  top: 50%;
  right: 0;
  min-height: 450px;
  transform: translateX(-10vw) translateY(-50%);
  background-color: rgba(255 255 255 / 60%);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--el-box-shadow);

  :deep(.el-divider__text){
    background-color: transparent;
  }

  #login-box {
    display: flex;
    justify-content: space-between;

    .login-form {
      display: flex;
      flex-direction: column;
      justify-content: center;
      width: 23vw;
      min-width: 375px;
      max-width: 500px;
      padding: 50px;
      padding-bottom: 20px;
      overflow: hidden;

      .title-container {
        position: relative;

        .title {
          font-size: 1.3em;
          color: var(--el-text-color-primary);
          margin: 0 auto 30px;
          font-weight: bold;
        }
      }

      :deep(.el-form-item) .el-input__wrapper {
        background: #F2F5F7;

        &.is-focus {
          background-color: var(--ik-input-focus-bg);
        }
      }
    }

    .flex-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
    }

    .sub-link {
      display: flex;
      align-items: center;
      justify-content: center;
      margin-top: 20px;
      font-size: 14px;
      color: var(--el-text-color-secondary);

      .text {
        margin-right: 10px;
      }
    }
  }

  .login-types {
    margin-bottom: 35px;
    padding: 0 35px;

    .login-icon {
      color: var(--el-text-color-secondary);
      font-size: 30px;
      cursor: pointer;

      &:hover {
        color: var(--el-color-primary);
      }

      &.active {
        color: var(--el-color-primary);
      }
    }
  }
}

.copyright {
  position: absolute;
  bottom: 0;
  padding: 20px;
  margin: 0;
  width: 100%;
}
